﻿@model InfoTech.VinhSon.Models.ArticleModel
@{
    ViewBag.Title = "Add Article";
    ViewBag.MnuLevel1 = "database";
    ViewBag.MnuLevel2 = "article";
    Layout = "~/Areas/Administrator/Views/Shared/_Layout.cshtml";
}
@section navigation
{
    <ul class="breadcrumbs">
        <li><a href="@Url.Action("Index",
                                 "Dashboard")"><i class="iconfa-home"></i></a><span class="separator">
            </span></li>
        <li><a href="@Url.Action("Index")">Article Management</a><span class="separator"> </span>
        </li>
        <li>Add Article</li>
    </ul>
}
@section header
{
    <div class="pageheader">
        <div class="pageicon">
            <span class="iconfa-tag"></span>
        </div>
        <div class="pagetitle">
            <h1>
                Add Article</h1>
        </div>
    </div>
}
@section script
{
    <script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")"> </script>
    <script src="@Url.Content("~/Areas/Administrator/Content/js/htmleditor.js")"> </script>
}
@Html.ValidationSummary()
<div class="widgetbox">
    <h4 class="widgettitle">
        Add Article</h4>
    <div class="widgetcontent nopadding">
        <form class="stdform stdform2" enctype="multipart/form-data" method="POST">
        <p>
            <label>
                Category</label>
            <span class="field">
                @Html.DropDownListFor(c => c.CategoryId,
                                          (IEnumerable<SelectListItem>)ViewBag.Categories,
                                          new
                                              {
                                                  @class = "uniformselect"
                                              })
                @Html.ValidationMessageFor(c => c.Name)
            </span>
        </p>
        <p>
            <label>
                Name</label>
            <span class="field">
                @Html.TextBoxFor(c => c.Name,
                                     new
                                         {
                                             @class = "input-xlarge",
                                             placeholder = "Name"
                                         })
                @Html.ValidationMessageFor(c => c.Name)
            </span>
        </p>
        <p>
            <label>
                Thumbnail</label>
            <span class="field">
                <input name="upload" type="file" />
            </span>
        </p>
        <p>
            <label>
                Link</label>
            <span class="field">
                @Html.TextBoxFor(c => c.Link,
                                     new
                                         {
                                             @class = "input-xxlarge",
                                             placeholder = "Link"
                                         })
                @Html.ValidationMessageFor(c => c.Link)
            </span>
        </p>
        <p>
            <label>
                Description</label>
            <div class="field">
                @Html.TextAreaFor(c => c.Description,
                                     new
                                         {
                                             @class = "input-xxlarge",
                                             placeholder = "Description"
                                         })
                @Html.ValidationMessageFor(c => c.Description)
            </div>
        </p>
        <p>
            <label>
                Detail</label>
            <div class="field">
                @Html.TextAreaFor(c => c.Detail,
                                     new
                                         {
                                             @class = "input-xlarge html-editor",
                                             placeholder = "Detail"
                                         })
                @Html.ValidationMessageFor(c => c.Detail)
            </div>
        </p>
        <p>
            <label>
                Activated</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.Activated)
                @Html.ValidationMessageFor(c => c.Activated)
            </span>
        </p>
        <p class="stdformbutton">
            <label>
            </label>
            <input type="submit" value="Insert New" class="btn btn-primary" />
            <input type="reset" value="Cancel" class="btn" />
        </p>
        </form>
    </div>
</div>
